<style>
.tableform th{width:100px;}
</style>
<div class="tableform">
左侧图片选择：
<div class="widgetconfig">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
  <tbody><tr>
    <th><{t app='b2c'}>图片：<{/t}></th>
    <td>
	<input type=hidden name="l[pic]" value="<{$setting.l.pic}>">
    <input name='l[pic]' class="imgsrc x-input" id="ad_picl" vtype="img_url" required='true'  value="<{$setting.l.pic}>">
    <input type=button value="<{t app='b2c'}>上传图片<{/t}>" class="uploadbtn" index='ad_picl' onclick="addPic(this)">
	</td>
    <th><{t app='b2c'}>图片描述：<{/t}></th>
    <td><input type="text" class='x-input' autocomplete='off'  name="l[pic_txt]" value="<{$setting.l.pic_txt}>"></td>
    <th><{t app='b2c'}>图片链接：<{/t}></th>
    <td><input type="text" class='x-input' autocomplete='off'  vtype="purl"  name="l[pic_link]" value="<{$setting.l.pic_link}>"></td>
  </tr>
</tbody>
</table>
</div>
</div>
<div class="tableform">

右侧图片选择中间4张图片选择：
<div class="widgetconfig">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
  <tbody>
  <tr>
    <th><{t app='b2c'}>图片：<{/t}></th>
    <td>
	<input type=hidden name="c[0][pic]" value="<{$setting.c.0.pic}>">
    <input name='c[0][pic]' class="imgsrc x-input" id="ad_pic0"  vtype="img_url" required='true'  value="<{$setting.c.0.pic}>">
    <input type=button value="<{t app='b2c'}>上传图片<{/t}>" class="uploadbtn" index='ad_pic0' onclick="addPic(this)">
	</td>
    <th><{t app='b2c'}>图片描述：<{/t}></th>
    <td><input type="text" class='x-input' autocomplete='off'  name="c[0][pic_txt]" value="<{$setting.c.0.pic_txt}>"></td>
    <th><{t app='b2c'}>图片链接：<{/t}></th>
    <td><input type="text" class='x-input' autocomplete='off'  vtype="purl"  name="c[0][pic_link]" value="<{$setting.c.0.pic_link}>"></td>
  </tr>
  <tr>
    <th><{t app='b2c'}>图片：<{/t}></th>
    <td>
	<input type=hidden name="c[1][pic]" value="<{$setting.c.1.pic}>">
    <input name='c[1][pic]' class="imgsrc x-input" id="ad_pic1" vtype="img_url" required='true'  value="<{$setting.c.1.pic}>">
    <input type=button value="<{t app='b2c'}>上传图片<{/t}>" class="uploadbtn" index='ad_pic1' onclick="addPic(this)">
	</td>
    <th><{t app='b2c'}>图片描述：<{/t}></th>
    <td><input type="text" class='x-input' autocomplete='off'  name="c[1][pic_txt]" value="<{$setting.c.1.pic_txt}>"></td>
    <th><{t app='b2c'}>图片链接：<{/t}></th>
    <td><input type="text" class='x-input' autocomplete='off'  vtype="purl"  name="c[1][pic_link]" value="<{$setting.c.1.pic_link}>"></td>
  </tr>
  <tr>
    <th><{t app='b2c'}>图片：<{/t}></th>
    <td>
	<input type=hidden name="c[2][pic]" value="<{$setting.c.2.pic}>">
    <input name='c[2][pic]' class="imgsrc x-input" id="ad_pic2"  vtype="img_url" required='true'  value="<{$setting.c.2.pic}>">
    <input type=button value="<{t app='b2c'}>上传图片<{/t}>" class="uploadbtn" index='ad_pic2' onclick="addPic(this)">
	</td>
    <th><{t app='b2c'}>图片描述：<{/t}></th>
    <td><input type="text" class='x-input' autocomplete='off'  name="c[2][pic_txt]" value="<{$setting.c.2.pic_txt}>"></td>
    <th><{t app='b2c'}>图片链接：<{/t}></th>
    <td><input type="text" class='x-input' autocomplete='off'  vtype="purl"  name="c[2][pic_link]" value="<{$setting.c.2.pic_link}>"></td>
  </tr>
  <tr>
    <th><{t app='b2c'}>图片：<{/t}></th>
    <td>
	<input type=hidden name="c[3][pic]" value="<{$setting.c.3.pic}>">
    <input name='c[3][pic]' class="imgsrc x-input" id="ad_pic3" vtype="img_url" required='true'  value="<{$setting.c.3.pic}>">
    <input type=button value="<{t app='b2c'}>上传图片<{/t}>" class="uploadbtn" index='ad_pic3' onclick="addPic(this)">
	</td>
    <th><{t app='b2c'}>图片描述：<{/t}></th>
    <td><input type="text" class='x-input' autocomplete='off'  name="c[3][pic_txt]" value="<{$setting.c.3.pic_txt}>"></td>
    <th><{t app='b2c'}>图片链接：<{/t}></th>
    <td><input type="text" class='x-input' autocomplete='off'  vtype="purl"   name="c[3][pic_link]" value="<{$setting.c.3.pic_link}>"></td>
  </tr>
</tbody>
</table>
</div>
</div>
<div class="tableform">
右侧图片选择：
<div class="widgetconfig">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
  <tbody><tr>
    <th><{t app='b2c'}>图片：<{/t}></th>
    <td>
	<input type=hidden name="r[pic]" value="<{$setting.r.pic}>">
    <input name='r[pic]' class="imgsrc x-input" id="ad_picr" vtype="img_url" required='true'  value="<{$setting.r.pic}>">
    <input type=button value="<{t app='b2c'}>上传图片<{/t}>" class="uploadbtn" index='ad_picr' onclick="addPic(this)">
	</td>
    <th><{t app='b2c'}>图片描述：<{/t}></th>
    <td><input type="text" class='x-input' autocomplete='off'  name="r[pic_txt]" value="<{$setting.r.pic_txt}>"></td>
    <th><{t app='b2c'}>图片链接：<{/t}></th>
    <td><input type="text" class='x-input' autocomplete='off'  vtype="purl"   name="r[pic_link]" value="<{$setting.r.pic_link}>"></td>
  </tr>
</tbody>
</table>
</div>
</div>
<script>
	function addPic(obj){
			var url='btools-alertpages.html?dd='+Date.now()+'&goto='+encodeURIComponent("btools-image_broswer.html?type=big");
			Ex_Loader('modedialog',function(){
			return new imgDialog(url,{onCallback:function(image_id,image_src){
					 $($(obj).get('index')).value=image_src;
			}})	;
			});
		}
</script>